import request from "@/utils/request";

// 租客来源分页查询
export function pageLesseeSource(query) {
  return request({
    url: "/enterprise/contract/lesseeSource/page",
    method: "get",
    params: query,
  });
}

// 删除租客来源
export function deleteLesseeSource(id) {
  return request({
    url: "/enterprise/contract/lesseeSource/"+id,
    method: "delete",
  });
}

// 新增租客来源
export function addLesseeSource(data) {
  return request({
    url: "/enterprise/contract/lesseeSource",
    method: "post",
    data
  });
}

// 编辑租客来源
export function updateLesseeSource(data) {
  return request({
    url: "/enterprise/contract/lesseeSource",
    method: "put",
    data
  });
}


